package com.itheima.actuator;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @Auther: 宋H
 * @Date: 2022/8/25
 * @Description: com.itheima.actuator
 * @version: 1.0
 */
@Component
@Endpoint(id = "pay",enableByDefault = true) //开启当前端点对外功能
public class payPoint {
    @ReadOperation //读取端点时调用
    public Object getPay(){
        Map m=new HashMap();
        m.put("id",18);
        m.put("name","薛之谦");
        return  m;
    }
}
